<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var a = prompt("请输入成绩");
			switch(a >= 60){
				case true:
					alert("合格");
					break
				default :
					alert("不合格");
			}
		</script>
	</head>
	<body>
	</body>
</html>
